package zhaojinzhen.controller;


import zhaojinzhen.entity.ZjzEntity;
import zhaojinzhen.service.ZjzService;

import javax.annotation.Resource;
import java.util.List;

public class ZjzController {
    List<ZjzEntity> list = null;

    String name = null;
    @Resource
    ZjzService zjzService;

    public String SiGui(){
        list = zjzService.SiGui(name);
        return "SiGui";
    }
    //@Resource @Autowired 作用相同 去spring容器中到bean实例
    //@Service @Component 向spring 容器中放入bean（类的对象）实例


    public List<ZjzEntity> getList() {
        return list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<ZjzEntity> list) {
        this.list = list;
    }
}
